﻿@model WikeSoft.Enterprise.Models.Sys.DataDictionayEditModel

@{
    ViewBag.Title = "编辑数据字典";
    Layout = "~/Views/Shared/_Form.cshtml";
}


<form class="form-horizontal" action="@Url.Action("Edit")" method="post">
    @Html.HiddenFor(x=>x.Id)
    <div class="form-group">
        @Html.LabelFor(x => x.DictionayName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.DictionayName, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.DictionayName)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.DictionayCode, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.DictionayCode, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.DictionayCode)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.GroupName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.GroupName, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.GroupName)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.GroupCode, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.GroupCode, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.GroupCode)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.SortIndex, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.SortIndex, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.SortIndex)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.Useable, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.CheckBoxFor(x => x.Useable, new {title = "是否启用"})
            @Html.ValidationMessageFor(x => x.Useable)

        </div>
    </div>

    <div>
        <div style="text-align: center">
            <button class="btn btn-default" type="submit" action="submit">保存</button>
            <button class="btn btn-default" type="button" action="back" data-url="@Url.Action("Index")">返回 </button>
        </div>

    </div>
</form>
